import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const state = {
    activityName: "", // 活动名称
    agreeList:[], // 协议
    forumList: [], //论坛
    urlParam: {
        corpId: "",
        //url参数
        activityId: "", //活动id
        tempId: "",
        signUpType: "",
        ticketTypeId: "", //票种id
        channelId: "", //渠道
    },
    thisEditTemplateId: "", //当前正在填写的字段模板
    formFiled: {
        errorMsg: "", //错误信息
        result: "", //提交的结果是否成功
        templateId: "", //前端生成唯一模板字段id
        componenList: [], //模板组件
    }, //报名的表单字段
    formList: [
        {
            templateId:''
        }
    ], //填写表单的集合
    isShowPhoneAlert: false, //是否展示手机号验证弹框
    phone: "", //手验证的机号，
}


const mutations = {

}

const actions = {

}

export default new Vuex.Store({
    state,
    mutations,
    actions
});